C51 COMPILER V8.05a   INTERRUPCIONES                                                       04/19/2018 15:18:09 PAGE 1   


C51 COMPILER V8.05a, COMPILATION OF MODULE INTERRUPCIONES
OBJECT MODULE PLACED IN interrupciones.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE interrupciones.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1          
   2          #include "interrupciones.h"
   3          
   4          // Timer Interrupt
   5          // This function is an interrupt service routine for Timer 0. It should never
   6          // be called by a C or assembly function. It will be executed automatically
   7          // when Timer 0 overflows.
   8          // "interrupt 1" tells the compiler to look for this ISR at address 000Bh
   9          // "using 1" tells the compiler to use register bank 1
  10          void timer0 (void) interrupt 1 using 1
  11          {
  12   1              // Stop Timer 0, adjust the Timer 0 counter so that we get another
  13   1              // in 10ms, and restart the timer.
  14   1              TR0 = 0; // stop timer
  15   1              TL0 = TL0 + (TIMER0_COUNT & 0x00FF);
  16   1              TH0 = TH0 + (TIMER0_COUNT >> 8);
  17   1              TR0 = 1; // start Timer 0
  18   1              // Increment the timer tick. This interrupt should occur approximately every 10ms. So,
  19   1              //the resolution of the timer will be 100Hz not including interrupt latency.
  20   1              timer0_tick++;  
  21   1      }
  22          
  23          // Timer Interrupt
  24          // This function is an interrupt service routine for Timer 1. It should never
  25          // be called by a C or assembly function. It will be executed automatically
  26          // when Timer 1 overflows.
  27          // "interrupt 1" tells the compiler to look for this ISR at address 000Bh
  28          // "using 1" tells the compiler to use register bank 1
  29          void timer1 (void) interrupt 3 using 1
  30          {
  31   1              // Stop Timer 0, adjust the Timer 0 counter so that we get another
  32   1              // in 10ms, and restart the timer.
  33   1              TR1 = 0; // stop timer
  34   1              TL1 = TL1 + (TIMER1_COUNT & 0x00FF);
  35   1              TH1 = TH1 + (TIMER1_COUNT >> 8);
  36   1              TR1 = 1; // start Timer 1
  37   1              // Increment the timer tick. This interrupt should occur approximately every 10ms. So,
  38   1              //the resolution of the timer will be 100Hz not including interrupt latency.
  39   1              timer1_tick++;
  40   1              timer1_delay_disparo++;
  41   1              timer1_tiempo_on_disparo++;
  42   1              timer1_tiempo_on_disparo_retrasado++;   
  43   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     90    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)
